{extend name="template/base" /}
{block name="nav"}{/block}
{block name="content"}
<div class="page-container">
<script>
	function preview(id){
			var url=$('#'+id).val();
			if(url==null||url=="")
				url="/admin/Emptynull/index.html";
			layer_open('图片预览',url);
		}
</script>
    <form class="form form-horizontal" id="form" method="post" action="{:\\think\\Request::instance()->baseUrl()}">
        <input type="hidden" name="id" value="{$vo.id ?? ''}">
		<!--<div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">品牌标志：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" value="{$vo.cover_image ?? ''}"
                    id="cover_image"  placeholder="" name="cover_image">
            </div>
			<button type="button"  class="btn btn-primary radius" onclick="layer_open('文件上传','/admin/upload/index/id/cover_image.html')">上传图片</button>
            <button onclick="preview('cover_image')" type="button" class="btn btn-success radius" data-lightbox="preview">预览</button>
			<span class="c_999"></span>
            <div class="col-xs-3 col-sm-3"></div>
        </div>-->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">支队：</label>
            <div class="formControls col-xs-6 col-sm-6">
          
             <select name="cid" class="input-text">
                {volist name="cat" id="vv"}
                <option value="{$vv.id}" >{$vv.cate_name}</option>
               {/volist}
             </select>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
		<div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">培训路口：</label>
            <div class="formControls col-xs-6 col-sm-6">
              <input type="text" class="input-text" value="{$vo.name ?? ''}"
                    id="name"  placeholder="" name="name">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
		<div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">排序：</label>
            <div class="formControls col-xs-6 col-sm-6">
              <input type="text" class="input-text" value="{$vo.sort ?? ''}"
                    id="sort"  placeholder="" name="sort">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;保存&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script>
    $(function () {
        $("[name='status'][value='{$vo.status ?? '1'}']").attr("checked",true);

        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            callback:function(ret){
                ajax_progress(ret);
            }
        });
    })
</script>
{/block}